import data from './model/md'

function foo(say:String, name:String){
    return new Promise<void>((resolve,rejevt)=>{
        setTimeout(function(){
            console.log(`${say} ${name}`)
            resolve()
        },500)
    })
}


async function hlw(name:String){
    const say:String='hello';
    console.log('开始',data.a)
    await foo(say, name)
    console.log('ok')
}

hlw('wf').then(()=>{
    console.log('完事',data.b)
})